using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CinemaLib
{
    /// <summary>
    /// Contains seats Properties
    /// </summary>
    [DataContract]
    public class Seat
    {
        [DataMember]
        public int ID { get; private set; }
        [DataMember]
        public int Number { get; private set; }
        [DataMember]
        public SeatType SeatType { get; private set; }
        [DataMember]
        public bool Occupied { get; set; }

        public Seat(int _id, int _number, SeatType _seattype, bool _occupied = false)
        {
            ID = _id;
            Number = _number;
            SeatType = _seattype;
            Occupied = _occupied;
        }
    }

    /// <summary>
    /// Enums of different seat types
    /// </summary>
    [DataContract(Name = "SeatType")]
    public enum SeatType
    {
        [EnumMember]
        Administration,
        [EnumMember]
        Handicapped,
        [EnumMember]
        Normal,
        [EnumMember]
        VIP,
    }
}
